# Contributor: Gavin D. Howard <yzena.tech@gmail.com>
# Maintainer: Gavin D. Howard <yzena.tech@gmail.com>
pkgname=howard-bc
pkgver=3.1.5
pkgrel=0
pkgdesc="POSIX bc with GNU extensions"
url="https://github.com/gavinhoward/bc"
arch="all"
license="BSD-2-Clause"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/gavinhoward/bc/archive/$pkgver.tar.gz"
builddir="$srcdir/bc-$pkgver"

build() {
	PREFIX=/usr DESTDIR="$pkgdir" EXECSUFFIX=-howard ./configure.sh -GN
	make
}

check() {
	make test
}

package() {
	make install
}

sha512sums="c42b7bca08b33fcb0b90702c1f71eb9f171e35ca4f4c1b0884f440e3741a19830355abcad0c719873d46dd4616af76ef9252f7b6f4b87a8eeeeda18a65f30cc0  howard-bc-3.1.5.tar.gz"
